package cn.getech.data.development.api;

import cn.getech.data.development.dto.JobInfoDto;
import cn.getech.data.development.entity.JobInfo;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Set;

/**
 * @ClassName JobInfoApi
 * @Description TODO
 * @Author Getech
 * @Date 2020/12/23 10:46
 */

public interface JobInfoApi {

    @RequestMapping(value = "/api/dataBdp/jobInfo/getJobInfoById",method = RequestMethod.GET)
    JobInfo getJobInfoById(@RequestParam("jobInfoId") Integer jobInfoId);

    @RequestMapping(value = "/api/dataBdp/jobInfo/updateJobInfoById",method = RequestMethod.POST)
    void updateJobInfoById(@RequestBody JobInfo jobInfo);

    @RequestMapping(value = "/api/dataBdp/jobInfo/selectListByIds",method = RequestMethod.GET)
    List<JobInfoDto> selectListByIds(@RequestParam("jobIds") Set<Integer> jobIds);

    @RequestMapping(value = "/api/dataBdp/jobInfo/selectListByStatus",method = RequestMethod.GET)
    List<JobInfo> selectListByStatus(@RequestParam("status") Integer status);

    @RequestMapping(value = "/api/dataBdp/jobInfo/updateJobInfoAndStatusById",method = RequestMethod.POST)
    void updateJobInfoAndStatusById(@RequestBody JobInfo jobInfo);
}
